body {
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    margin: 0 auto;
    font-size: 14px;
    font-family: -apple-system, Helvetica, sans-serif;
    color: #666;
    line-height: 1.5;
    background-color: #f6f6f6;
}

a {
    text-decoration: none;
    color: #666;
}

header {
    width: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    /* 去除图片的缝隙 */
    vertical-align: middle;
}

header ul li {
    float: left;
    height: 50px;
    line-height: 50px;
    background-color: #333;
    text-align: center;
    color: #fff;
}

header ul li:nth-child(1) {
    width: 8%;
}

header ul li:nth-child(1) img {
    width: 10px;
}

header ul li:nth-child(2) {
    width: 10%;
}

header ul li:nth-child(2) img {
    width: 30px;
    vertical-align: middle;
}

header ul li:nth-child(3) {
    width: 57%;
    border: none;
}

header ul li:nth-child(4) {
    width: 25%;
    background-color: #f63515;
}

/* 搜索模块 */
.search-wrap {
    position: fixed;
    width: 100%;
    height: 44px;
    overflow: hidden;
    min-width: 320px;
    max-width: 640px;
    z-index: 999;
}

.search-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 44px;
}

.search-btn span {
    display: block;
    margin: 14px 0 0 15px;
    width: 20px;
    height: 18px;
    background: url(../images/search.png) no-repeat;
    background-size: 100% 100%;

}

.search {
    position: relative;
    margin-top: 5px !important;
    height: 34px;
    margin: 0 50px;
    background-color: #fff;
    border-radius: 15px;
}

.search .jd-icon {
    position: absolute;
    top: 9.5px;
    left: 15px;
    width: 20px;
    height: 15px;
    background: url(../images/jd-icon.png) no-repeat;
    background-size: 100% 100%;
}

.jd-icon::after {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 27px;
    width: 1px;
    height: 15px;
    background-color: #ccc;
}

.fdj {
    position: absolute;
    top: 9.5px;
    left: 50px;
    width: 18px;
    height: 15px;
    background: url(../images/jd-sprites.png) no-repeat -81px 0;
    background-size: 200px;
}

.search input {
    border: 0;
    outline: 0;
    font-size: 12px;
    color: #232326;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    height: 34px;
    border-radius: 15px;
    margin: 0 0 0 78px;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 57%;
    line-height: 34px;
}

.search-login {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 44px;
}

.search-login span {
    display: inline-block;
    margin: 10px 0;
    color: #fff;
    font-size: 14px;
}

/* 主体内容模块 */
.main-content {
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.brand div {
    float: left;
    width: 33.33%;
}

.brand div img {
    width: 100%;
}

/* nav */
.nav {
    width: 100%;
    height: 160px;
    background-color: #f6f6f6;
}

.nav a {
    float: left;
    margin-top: 10px;
    width: 20%;
    text-align: center;
}

.nav a img {
    width: 40px;
}

.nav a span {
    display: block;
    margin-top: 5px;
    font-size: .6rem;
    color: #666;
}

/* 秒杀模块 */
.ms {
    height: 130px;
    margin: 0 10px 20px 10px;
    border-radius: 10px;
    background-color: #fff;
}

.top {
    position: relative;
    width: 100%;
    float: left;
    margin-bottom: 15px;
}

.top h3 {
    display: inline-block;
    margin: 0;
    font-style: 200px;
    font-weight: 400;
    margin-left: 5px;
}

.top span {
    margin-left: 5px;
    color: red;
}

.top span::after {
    content: '';
    position: absolute;
    top: 6px;
    display: inline-block;
    width: 20px;
    height: 17px;
    background: url(../images/20.png) no-repeat;
    background-size: 20px 17px;
}

.top a p {
    display: block;
    margin: 0;
    position: absolute;
    top: 2.5px;
    right: 20px;
    color: red;
}

.top a p::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 2.5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: red;
    text-align: center;
    line-height: 15px;
    color: #fff;
    font-size: 14px;
}

.top a p::before {
    position: absolute;
    top: 6.5px;
    right: -9.5px;
    content: "";
    width: 4px;
    height: 4px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    z-index: 2;
}

.bottom {
    width: 100%;
}

.bottom ul {
    width: 100%;
    margin: 2px 5px 0 6px;
}

.bottom ul li {
    float: left;
    width: 15%;
    height: 77px;
    margin-right: 5px;

}

.bottom ul li img {
    width: 55px;
    height: 55px;
}

.bottom ul li a {
    display: block;
    text-align: center;
}

.bottom ul li p {
    margin-top: 8px;
    color: red;
}

/* 商品模块 */
.shop {
    margin: 0 10px;
}

.shop div {
    float: left;
    width: 48.5%;
    margin-bottom: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.shop div:nth-child(odd) {
    margin-right: 10px;
}

.shop div img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.shop div .text {
    width: 172px;
    padding: 5px 0.5rem 0 0.5rem;
}

.shop div .text span img {
    border-radius: 0;
    width: 44px;
    height: 14px;
}

.shop div .text .zdj img {
    width: 12px;
    height: 12px;
}

.shop div .text .zdj {
    width: 80px;
    height: 15px;
    margin: 0;
    border-radius: 10px;
    background-color: pink;
    text-align: center;
    line-height: 15px;
    color: #ff2078;
    font-size: 12px;
    font-style: normal;
}

.shop div .text span {
    top: 0;
    right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    word-break: break-all;
    -webkit-box-orient: vertical;
}

.shop div .text e {
    display: block;
    width: 20px;
    color: red;
    font-size: 20px;
}

.shop div .text p {
    width: 100%;
    position: relative;
    margin: 0px 0 0px 3px;
    color: #999;
    font-size: 0.6rem;
}

.shop div .text p span {
    position: absolute;
    top: 1px;
    left: 28px;
}

.shop div .text p::after {
    position: absolute;
    right: 0;
    content: "看相似";
    display: inline-block;
    width: 55px;
    height: 20px;
    border-radius: 10px;
    background-color: #f2f2f2;
    text-align: center;
    line-height: 20px;
    color: #262626;

}

.shop div .text p img {
    border-radius: 0;
    width: 24px;
    height: 14px;

}


/* 底部模块 */
footer {
    width: 100%;

}

footer .shang {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    padding: 4.26667vw 5.33333vw;
}

footer .shang div {
    float: left;
    box-sizing: border-box;
    width: 25%;
    height: 24px;
    line-height: 24px;
    border-right: 1px solid #e5e5e5;
    text-align: center;
}

footer .shang div:last-child {
    border: 0;
}

footer .zhong {
    box-sizing: border-box;
    width: 100%;
    height: 69px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    line-height: 69px;
}

.zhong div {
    float: left;
    width: 33.33%;
    height: 69px;
}

.zhong div img {
    width: 60px;
    height: 60px;
}

footer .text {
    text-align: center;
    color: #848689;
    font-size: 1.86667vw;
    padding: 2vw 0;
}

.jd-wuliu {
    width: 44px !important;
    height: 14px;

}

/* 返回顶部 */
.goBack {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 25px;
    width: 38px;
    height: 38px;
    background: url(../images/goBack.png) no-repeat;
    background-size: 38px 38px;
}